#include <stdio.h>
#include <string.h>

int isVowel(char c) {
    switch(c) {
        case 'a':
        case 'e':
        case 'i':
        case 'o':
        case 'u':
        case 'A':
        case 'E':
        case 'I':
        case 'O':
        case 'U': return 1;
        default: return 0;
    }
}

void deleteVowels(char *str) {
    int i, j = 0;
    for(i = 0; str[i]; i++) {
        if(!isVowel(str[i])) {
            str[j++] = str[i];
        }
    }
    str[j] = '\0';
}

int main() {
    char str[100];
    printf("Enter a string to delete vowels\n");
    gets(str);
    
    deleteVowels(str);
    
    printf("String after deleting vowels: %s\n", str);
    
    return 0;
}
